package cn.dengta.webapp.im.entity;

import cn.dengta.webapp.base.entity.TimeBasedEntity;
import cn.dengta.webapp.user.model.Gender;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/** 涉嫌欺诈消息日志 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("im_fraud_log")
public class FraudLog extends TimeBasedEntity {
	/** 发送者 */
	Long fromUserId;
	/** 接受者用户ID */
	Long toUserId;
	/** 发送者性别 */
	Gender fromGender;
	/** 消息接收者昵称 */
	String toNickname;
	/** 发送的消息 */
	String msg;
	/** 涉嫌欺诈词 */
	String fraud;

	public FraudLog init(Long fromUserId, Long toUserId, String msg, String fraud){
		this.fromUserId = fromUserId;
		this.toUserId = toUserId;
		this.msg = msg;
		this.fraud = fraud;
		return this;
	}

	public static final String FROM_USER_ID = "from_user_id";
	public static final String FRAUD = "fraud";
}
